package com.howbuy.tms.eureka;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 启动一个服务注册中心提供给其他应用进行对话
 */
@EnableEurekaServer
@SpringBootApplication
public class TmsEurekaApplication {

    public static void main(String[] args) {
//        SpringApplication.run(TmsEurekaApplication.class, args);
        new SpringApplicationBuilder(TmsEurekaApplication.class)
                .web(true).run(args);
    }

}

